package com.gjy.liteflow.config;

import com.gjy.liteflow.domain.AjaxResult;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-08-11 11:17:36
 */
//@RestControllerAdvice
//@Slf4j
public class GlobalExceptionHandler {

//    @ExceptionHandler(value = Exception.class)
    public AjaxResult illegal(IllegalArgumentException e) {
//        log.error("e {}", e.getMessage());
        return AjaxResult.builder().code(500).message("服务器发生异常").data(e.getMessage()).build();
    }
}
